import React,{Component} from "react";

class Pencil extends Component{
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <div>
                商品编号：{this.props.location.state.id}<br />
                商品名称：{this.props.location.state.name}<br />
                商品描述：铅笔好，铅笔好，铅笔写错还可以擦掉<br />
            </div>
        );
    }
}

export default Pencil;